/*
Copyright 2011 Michael Mallon

This file is part of SQAT.

SQAT is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

SQAT is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with SQAT.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef COEFFICIENT_H_
#define COEFFICIENT_H_
#include <string>
using namespace std;

class Coefficient {
public:
	Coefficient();
	virtual ~Coefficient();
	Coefficient & operator=(Coefficient c);
	Coefficient operator+=(Coefficient c);
	Coefficient operator-=(Coefficient c);
	Coefficient operator*=(Coefficient c);
	Coefficient operator/=(Coefficient c);
	Coefficient operator+(Coefficient c);
	Coefficient operator-(Coefficient c);
	Coefficient operator*(Coefficient c);
	Coefficient operator/(Coefficient c);
    double getNumber() const;
    double getPower() const;
    string getVariable() const;
    void setNumber(double number);
    void setPower(double power);
    void setVariable(string variable);
    bool likeTerms(Coefficient c);

private:
	double number;
	double power;
	string variable;
};

#endif /* COEFFICIENT_H_ */
